package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.ArticleInformation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository("ArticleInformationMapper")
public interface ArticleInformationMapper {
    int saveArticleInformationData(ArticleInformation articleInformation);

    int deleteArticleInformationData(@Param("articleId") String articleId);

    int updateArticleInformationData(ArticleInformation articleInformation);

    ArticleInformation loadArticleInformationData(@Param("articleId") String articleId);

    List<ArticleInformation> loadDisponseFinalDataList(@Param("id") String id, @Param("limit") Integer limit);
}
